package br.edu.fasete.javaroad.base;

public class Util {
	public static String capitalize(String s) {
		if(s != null) {
			if(s.length() > 0) {
				char chars[] = s.toCharArray();
				chars[0] = Character.toUpperCase(chars[0]);
				return new String(chars);
			} 
		}
		return "";
	}
	 
	public static String uncapitalize(String s) {
		if(s != null) {
			if(s.length() > 0) {
				char chars[] = s.toCharArray();
				chars[0] = Character.toLowerCase(chars[0]);
				return new String(chars);
			} 
		}
		return "";
	}

	 public boolean isNull(Object o) {
		 return ( o == null);
	 }
	 
	 
}
